#ifndef DRAWINGVIEWCONTAINER_H
#define DRAWINGVIEWCONTAINER_H

#include <QTabWidget>

class Document;

class DrawingViewContainer : public QTabWidget
{
    Q_OBJECT
public:
    explicit DrawingViewContainer(QWidget *parent = 0);

    void addDocument(QPointer<Document> doc);
signals:
    void closeDocument(QPointer<Document> doc);
protected:

public slots:

private slots:
    void onRemoveTab(int index);
    void onContextMenu(const QPoint& point);
    void onTabChanged(int index);
    void onActiveDocumentChanged(QPointer<Document> doc);
    void onDocumentRemoved(QPointer<Document> doc);
};

#endif // DRAWINGVIEWCONTAINER_H
